﻿package core.drawing
{
    import core.enum.*;
    import core.image.*;
    import core.ui.*;
    import flash.events.*;

    public class Tool extends Object
    {
        public var ed:Tuyitu;
        public var moveevent:Boolean;
        public var layer:Layer;
        public var canvas:Canvas;
        public var history:History;
        public var document:Document;
        public var selection:Selection;
        public var options:Object;
        public var shift:ToolType;
        public var type:ToolType;
        public var ctrl:ToolType;

        public function Tool(param1, param2, param3)
        {
            this.ed = param1;
            this.type = param2;
            this.moveevent = param3;
            return;
        }// end function

        public function UpdateReferences() : void
        {
            this.canvas = this.ed.canvas;
            this.history = this.canvas.history;
            this.document = this.canvas.document;
            this.layer = this.document.GetLayer();
            this.selection = this.canvas.selection;
            this.options = this.ed.options.current;
            return;
        }// end function

        public function MouseDrag(event:MouseEvent) : void
        {
            return;
        }// end function

        public function MouseDown(event:MouseEvent) : void
        {
            return;
        }// end function

        public function MouseMove(event:MouseEvent) : void
        {
            return;
        }// end function

        public function MouseUp(event:MouseEvent) : void
        {
            return;
        }// end function

        public function CleanUp() : void
        {
            return;
        }// end function

        public function Reset() : void
        {
            return;
        }// end function

    }
}
